package com.example.livingadminmaster.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;

@TableName("dormitory_maintenance_info")
public class Maintenance {
    @TableId(value = "maintenance_id",type = IdType.ASSIGN_ID)
    private long maintenanceId;
    private String username;
    private String password;
    private boolean gender;
    private String phone;
    private String dorm_building;
    private boolean status;
    public LocalDateTime last_login;
    @TableField(fill = FieldFill.INSERT) //插入时填充字段
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT) //插入时填充字段
    private LocalDateTime updateTime;
    public long getMaintenanceId() {
        return maintenanceId;
    }
    public String getUsername() {
        return username;
    }
    public String getPassword() {
        return password;
    }
    public boolean getGender() {
        return gender;
    }
    public String getPhone() {
        return phone;
    }
    public String getDormBuilding() {
        return dorm_building;
    }
    public boolean getStatus() {
        return status;
    }
    public LocalDateTime getLastLogin() {
        return last_login;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }
    public void setMaintenanceId(long maintenanceId) {
        this.maintenanceId = maintenanceId;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public void setGender(boolean gender) {
        this.gender = gender;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public void setDormBuilding(String dorm_building) {
        this.dorm_building = dorm_building;
    }
    public void setStatus(boolean status) {
        this.status = status;
    }
    public void setLastLogin(LocalDateTime last_login) {
        this.last_login = last_login;
    }
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

}
